package com.tensquare.friend.model;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@IdClass(NoFriend.class)
@Table(name = "tb_nofriend")
public class NoFriend implements Serializable {

    @Id
    private String userid;

    @Id
    private String friendid ;

    public NoFriend() {}

    public NoFriend(String userid, String friendid) {
        this.userid = userid;
        this.friendid = friendid;
    }
}
